package ltd.hanamaki.study.struct;

/*
* 选择 语句 Switch
* */
public class SwitchDemo {

    public static void main(String[] args) {

        /* Switch 可以匹配 int  String char */
        String name = "hanamaki";
        switch (name) {
            case "hanamaki":
                System.out.println("YES");
                break;
            case "hanamaki1":
                System.out.println("YES1");
                break;
            default:
                System.out.println("NO");
        }

    }

}
